package com.hankai.service;

import com.hankai.common.ServerResponse;
import com.hankai.pojo.User;

/**
 * Created by hankai on 2017/6/3.
 */
public interface IUserService {
    ServerResponse<User> login(String username , String password);

    ServerResponse<String> register(User user);

    ServerResponse<String> checkValid(String str ,String type );
    ServerResponse<String> forGetQuestion(String username);
    ServerResponse<String> checkAnswer(String username, String question, String answer);

    ServerResponse<String> resetPassword(String password, String newPassword, User user);

    ServerResponse<User> updateInformation(User user);

    ServerResponse<User> getInfoMation(Integer id);

    ServerResponse checkIsNotAdmin(User user);
}
